<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>媒体查询</title>
</head>
<style>
    ul li {
        width: 120px;
        height: 120px;
        list-style-type: square;
        float: left;
        background: lightgray;
        border: 1px solid;
        margin-right: 10px;
    }

    @media screen and (max-width:960px) {
        ul li{
            background: lightsalmon;
            width: 200px;
        }
    }
</style>

<body>
    <div class="father">
        <ul>
            <li>列表1</li>
            <li>列表2</li>
            <li>列表3</li>
            <li>列表4</li>
            <li>列表5</li>
            <li>列表6</li>
        </ul>
    </div>
</body>

</html>